package io.gitee.yth.design.pattern.test.core.pattern.behavioral.clainofresponsibility;

/**
 * @author yth
 * @since 2023-05-03-16:11
 */
public class Button extends Widget {
    public Button(Widget parent, Topic topic) {
        super(parent, topic);
    }

    @Override
    public void handleHelp() {
        if (hasHelp()) {
            // offer help on the button
            System.out.println("the button offering help ...");
        } else {
            super.handleHelp();
        }
    }
}
